
/*
 * mainwindow.cpp
 *
 * Implementation of the terminal main window
 *
 * 16.06.2010, Klaus Hennemann
 */

#include "mainwindow.h"
#include "terminalwidget.h"



MainWindow::MainWindow (QWidget *parent, Qt::WindowFlags flags)
	: QMainWindow (parent, flags)
{
	ui.setupUi(this);

	/* Currently I have no idea how to create TabWidget without
	   Tabs in the QtDesigner. So here is a simple workaround. 
	   We remove all tabs. */
	while (ui.tab->count() > 0)
		ui.tab->removeTab(0);

	/* create terminal page */
	TerminalWidget *term = new TerminalWidget(ui.tab);
	ui.tab->addTab(term, "test");

	term->execute();
}





